<?php

// 处理字符串防止特殊符号引起的错误，
$process_include    = array('cmname', 'realname', 'phone', 'qq', 'area', 'address', 'workexp', 'ip', 'addtime');
string_pre_process($record, $process_include);
extract($record, EXTR_OVERWRITE);

$addtime      = ($sendtime > 0) ? date(DATE_TIME_FORMAT, $sendtime) : '未知';
$gender       = $gender == 1 ? "先生" : '女士';
// 回复时间
$date_time_array = getdate($replytime);
$reply_date = $date_time_array["year"] . '-' . $date_time_array["mon"] . '-' . $date_time_array["mday"];
$reply_hour = $date_time_array["hours"];
$reply_min  = $date_time_array["minutes"];
$reply_sec  = $date_time_array["seconds"];


// 取得返回字符串
$back_url   = strcode(getcookie('back_url'), 'DECODE');
if($back_url == '') $back_url   = $mod_url['li'];


if($action == 'modify') {
    $txt_form_title = "查看申请人信息";
    $cur_tab_menu   = "not_exist";
} else {
    $txt_form_title = "新增问题";
    $cur_tab_menu   = "admin_add";
}


require_once('header.php');
?>
<SCRIPT LANGUAGE="JavaScript" SRC="<?php echo $url_global['common'] ?>/js/Validator.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="<?php echo $url_global['common'] ?>/js/popcalendar.js"></SCRIPT>

<div class="sp_height_5px"></div>

	<div class="datacontainer2" style="width:90%;">
<div class="header">
	&nbsp;&nbsp;<span class="font_form_head"><?php echo $txt_form_title ?></span>
</div>
<table BORDER="0" cellpadding="0" cellspacing="0" width="100%" class="list_table">
<form action="<?php echo $mod_url['save'] ?>" method="post" name="user_data" onsubmit="return Validator.Validate(this,3);">

<TR>
	<TD width="120" align="right" class="caption">企业名称：</TD>
	<TD class="FormCell">
		<?php echo $cmname ?> 
	</TD>
</TR>
<TR>
	<TD width="120" align="right" class="caption">联系人姓名：</TD>
	<TD class="FormCell">
		 <?php echo $realname ?> <?php echo $gender ?>
	</TD>
</TR>
<TR>
	<TD width="120" align="right" class="caption">联系电话：</TD>
	<TD class="FormCell">
		 <?php echo $phone ?></span>
	</TD>
</TR>
<TR>
	<TD width="120" align="right" class="caption">联系QQ：</TD>
	<TD class="FormCell">
		 <?php echo $qq ?>  
	</TD>
</TR>
<TR>
	<TD width="120" align="right" class="caption">联系地址：</TD>
	<TD class="FormCell">
<?php echo $address;?>
	</TD>
</TR>
<TR>
	<TD width="120" align="right" class="caption">企业经营范围：</TD>
	<TD class="FormCell">
<?php echo $workexp;?>
	</TD>
</TR>
<TR>
	<TD width="120" align="right" class="caption">发布IP：</TD>
	<TD class="FormCell">
<?php echo $ip;?>
	</TD>
</TR>

<TR>
	<TD width="120" align="right" class="caption">申请时间：</TD>
	<TD class="FormCell">
<?php echo $addtime;?>
	</TD>
</TR>
</form>
</TABLE>
	</div>

<?
require_once('footer.php');
 ?>